package com.hymall.mapper;

import com.hymall.bean.MarketComment;
import com.hymall.bean.MarketCommentExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface MarketCommentMapper {
    long countByExample(@Param("example") MarketCommentExample example);

    int deleteByExample(MarketCommentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketComment record);

    int insertSelective(MarketComment record);

    List<MarketComment> selectByExample(@Param("example") MarketCommentExample example, @Param("order") String order);

    MarketComment selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketComment record, @Param("example") MarketCommentExample example);

    int updateByExample(@Param("record") MarketComment record, @Param("example") MarketCommentExample example);

    int updateByPrimaryKeySelective(MarketComment record);

    int updateByPrimaryKey(MarketComment record);

    @Update("update market_comment set admin_content = content where id = #{id}")
    void updateComment(int id,String content);
}